package com.example.sysao.controller;

import com.example.sysao.pejo.Record;
import com.example.sysao.service.RecordService;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@Component
@RequestMapping("/record")
public class RecordController {
    @Resource
    private RecordService recordService;

    @RequestMapping("/list")
    public List<Record> findAll() {
        return recordService.findAll();
    }

}
